chore: TSA-501 whats happening UI fixes#29920
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 95dad60. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
SmokeWalletPlatform is selected because the WhatsHappening section is part of the Trending discovery tab, which is explicitly covered by this tag (browsing content feeds including Tokens, Perps, Sites sections). SmokePerps is selected because the card now uses No other tags are warranted as these are purely UI display changes with no impact on: confirmations, accounts, network, swaps, staking, identity, browser, snaps, or other flows. Performance Test Selection: |
|




Description
Small UI improvements to the What's Happening cards.

Changelog
CHANGELOG entry: no-changelog
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI-only changes to card presentation and date formatting; main risk is minor regressions in layout or relative-time output for edge-case dates.
Overview
Updates the Homepage What’s Happening cards to simplify badges and improve the footer: the category badge is removed, impact badge styling is adjusted, and related assets are shown as up to 3 overlapping token icons plus a compact label (e.g.,
BTC +2) instead of multiple symbol pills.Switches the card timestamp from a locale date to a relative time string via
formatRelativeTime(withnowsupport) and removes the unusedformatShortDatehelper.formatRelativeTimenow returns an empty string for invalid dates, with new unit tests covering invalid inputs and minute/hour/day formatting.Reviewed by Cursor Bugbot for commit 0aa690a. Bugbot is set up for automated code reviews on this repo. Configure here.